package com.jiesone.logger.distributecleaning.entity;
/*
 *@ClassName SplittingIntegral
 *@Description TODO  智能切分业务处理封装类
 *@Author tangsixiang@163.com
 *@Date 2022/3/4 9:24
 *@Version 1.0
 */

public class SplittingIntegral {


    /***
     * 应用日志来源业务编码
     */
    private String serviceCode;
    /****
     * 标准格式化数据存储索引库
     */
    private  String   targetIndex;

    /****
     * 非字符串截取逻辑：   获取格式化数据下标点位
     * 截取字符串逻辑时候  获取目标字符串下标
     */
    private  int   dataIndex;

    /****
     * 截取字符串  结束位下标
     */
    private  int dataEnd;
    /***
     * 保存数据库 列
     */
    private  String  dataKey;


    /****
     *  JSON解析  对应的为 内置Key
     */
    private  String   dataAlias;


    /****
     * 是智能切   还是自定义 正则表达式
     */
    private  int   ruleType;

    /*****
     * 截取类型      INTER  截取字符串    NOR 正则    SEPAR 分隔符     JSON 类型
     */
    private   String ruleFormat;


    /****
     * 执行字符
     */
    private  String   rulePretty;


    public String getServiceCode() {
        return serviceCode;
    }




    public void setServiceCode(String serviceCode) {
        this.serviceCode = serviceCode;
    }

    public String getTargetIndex() {
        return targetIndex;
    }

    public void setTargetIndex(String targetIndex) {
        this.targetIndex = targetIndex;
    }

    public int getDataIndex() {
        return dataIndex;
    }

    public void setDataIndex(int dataIndex) {
        this.dataIndex = dataIndex;
    }

    public int getDataEnd() {
        return dataEnd;
    }

    public void setDataEnd(int dataEnd) {
        this.dataEnd = dataEnd;
    }

    public String getDataKey() {
        return dataKey;
    }

    public void setDataKey(String dataKey) {
        this.dataKey = dataKey;
    }

    public String getDataAlias() {
        return dataAlias;
    }

    public void setDataAlias(String dataAlias) {
        this.dataAlias = dataAlias;
    }

    public int getRuleType() {
        return ruleType;
    }

    public void setRuleType(int ruleType) {
        this.ruleType = ruleType;
    }

    public String getRuleFormat() {
        return ruleFormat;
    }

    public void setRuleFormat(String ruleFormat) {
        this.ruleFormat = ruleFormat;
    }

    public String getRulePretty() {
        return rulePretty;
    }

    public void setRulePretty(String rulePretty) {
        this.rulePretty = rulePretty;
    }

    @Override
    public String toString() {
        return "SplittingIntegral{" +
                "serviceCode='" + serviceCode + '\'' +
                ", targetIndex='" + targetIndex + '\'' +
                ", dataIndex=" + dataIndex +
                ", dataEnd=" + dataEnd +
                ", dataKey='" + dataKey + '\'' +
                ", dataAlias='" + dataAlias + '\'' +
                ", ruleType=" + ruleType +
                ", ruleFormat='" + ruleFormat + '\'' +
                ", rulePretty='" + rulePretty + '\'' +
                '}';
    }
}
